/*
 * @Author: mylesshie@gmail.com
 * @Date: 2020-07-07 22:00:04
 * @LastEditors: mylesshie@gmail.com
 * @LastEditTime: 2020-07-07 22:00:22
 * @description:
 */

import * as React from 'react'

export const navigationRef = React.createRef()

// 需要跳转的地方引入该FN即可
export function navigate(name, params) {
  navigationRef.current?.navigate(name, params)
}
